package javabase.schoolwork.day6_5;

/**
 * @author fance
 * @date 18-6-4 下午1:17
 */
public class Account {
    private String name;
    private String sex;
    private String cardNum;
    private String type;
    private double money;

    public Account() {
    }

    public Account(String name, String sex, String cardNum, String type, double money) {
        this.name = name;
        this.sex = sex;
        this.cardNum = cardNum;
        this.type = type;
        this.money = money;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return "Account{" +
                "name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", cardNum='" + cardNum + '\'' +
                ", type='" + type + '\'' +
                ", money=" + money +
                '}';
    }
}
